package self.niu.com.resume.initData;

import self.niu.com.resume.db.dbHeple.DbHander;
import self.niu.com.resume.ui.MyUtils;

/**
 * Created by Administrator on 2015/10/10 0010.
 */
public class InitData {
    //设置用户信息
    public static void setData() {
        DbHander.getInstance().addUser("1", "邮箱：", "18286882993@163.com", "email");
        DbHander.getInstance().addUser("2", "电话：", "15982215971", "phone");
        DbHander.getInstance().addUser("3", "学历：", "本科", "degree");
        DbHander.getInstance().addUser("4", "职位：", "Android开发", "job");
        DbHander.getInstance().addUser("5", "专业：", "计算机科学与技术", "major");
    }

    //添加数据到数据库
    public static void setJavaDatatoDb() {
        for (int i = 0; i < MyUtils.allJavaTitls.length; i++) {
            DbHander.getInstance().addJavaAbility(MyUtils.allJavaTitls[i], MyUtils.getAllAbilityImages(i), "2" + i, MyUtils.allJavaDetail[i]);
        }
        for (int i = 0; i < MyUtils.allKnowTitls.length; i++) {
            DbHander.getInstance().addKnowAbility(MyUtils.allKnowTitls[i], MyUtils.getAllAbilityImages(i), null, MyUtils.allKnowDetail[i]);
        }
        for (int i = 0; i < MyUtils.allSkillTitls.length; i++) {
            DbHander.getInstance().addSkilledAbility(MyUtils.allSkillTitls[i], MyUtils.getAllAbilityImages(i), null, MyUtils.allSkillDetail[i]);
        }
        for (int i = 0; i < MyUtils.allSeniorTitls.length; i++) {
            DbHander.getInstance().addSeniorAbility(MyUtils.allSeniorTitls[i], MyUtils.getAllAbilityImages(i), null, MyUtils.allSeniorDetail[i]);
        }
        for (int i = 0; i < MyUtils.allToolTitls.length; i++) {
            DbHander.getInstance().addToolAbility(MyUtils.allToolTitls[i], MyUtils.getAllAbilityImages(i), null, MyUtils.allToolDetail[i]);
        }
    }
}
